package com.ftg.learn.chapter04.isa;

/**
 * 动物
 *
 * @author 布衣
 */
public class Animal {

    static {
        System.out.println("super 要比构造方法先执行");
    }

    static int superInt = 19;

    int superADefault = 13;
    private int superAPrivate =14;
    protected int superAProtected =15;
    public int SuperAPublic = 16;

    private void privateMethod(){
        System.out.println("super private method");
    }

    void defaultMethod(){
        System.out.println("super default method");
    }

    protected static void protectedMethod(){
        System.out.println("super Protected method");
    }

    public Animal(){
        System.out.println("animal 构造方法");
    }

    public String name;

    public void eat(){
        System.out.println("动物吃");
    }

}
